package es.uned.hoomgle.core.dtos;

import java.util.List;

import es.uned.hoomgle.hibernate.beans.impl.Home;
import es.uned.hoomgle.hibernate.beans.impl.Role;
import es.uned.hoomgle.hibernate.beans.interfaces.HomeI;
import es.uned.hoomgle.hibernate.beans.interfaces.RoleI;
import es.uned.hoomgle.hibernate.beans.interfaces.UserI;


public class UserDto implements UserI{
	

	private Integer id;
	
	private String name;

	private List<RoleI> roles;
	
	private String userName;
	
	
	private String password;
	
	private String email;
	
	private boolean isActive;

	private List <HomeI> homeList;
	
	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}

	
	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isActive() {
		return isActive;
	}


	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}


	public Integer getId() {		
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}

	

	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}

	

	public List getRoles() {
		return roles;
	}


	public void setRoles(List roles) {
		this.roles = roles;
	}


	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("UserDto [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", roles=");
		builder.append(roles);
		builder.append(", userName=");
		builder.append(userName);
		builder.append(", password=");
		builder.append(password);
		builder.append(", e-mail=");
		builder.append(email);
		builder.append(", isActive=");
		builder.append(isActive);
		builder.append("]");
		return builder.toString();
	}


	public List getHomeList() {
		return homeList;
	}


	public void setHomeList(List homeList) {
		this.homeList = homeList;
	}


	

	

	
}



